<template>
  <div class="app-container">
    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane name="1" label="采购入库">
        <inPoIndex />
      </el-tab-pane>
      <el-tab-pane name="2" label="待收货" lazy>
        <custPoIndex />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import inPoIndex from "./inPoIndex";
import custPoIndex from "./custPoIndex";

export default {
  components: { inPoIndex, custPoIndex },
  props: {},
  data() {
    return {
      activeName: "1",
    };
  },
  created() {},
  mounted() {},
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>
